import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yp/pages/mall_app/classification/view.dart';
import 'package:yp/pages/mall_app/mall/view.dart';
import 'package:yp/pages/mall_app/my/view.dart';
import 'package:yp/pages/trolley/trolley_view.dart';

class MainState {
  RxInt selectedIndex;

  var pageController;

  var box;

  List<Widget> pages = [
    // WorkbenchPage(),
    MallPage(), // 商城z
    ClassificationPage(), // 分类
    // Marketing(), // 营销活动
    // Collection(), // 合集
    TrolleyPage(), // 购物车
    // // Order(),
    // OrderPage()  // 订单
    MyPage(), // 我的
    // UserPage(),
  ];

  var isShow = false.obs;
  MainState() {
    selectedIndex = 0.obs;
    pageController = PageController(initialPage: selectedIndex.toInt());
  }
}
